-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support subbuffer size option #85
Conversation
9adefd1
to
2b5a9fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I have tested ros2 caret record
command in iron environment.
when specifing --subbuffer-size-{ust,kernel}
option:
ros2 caret record --subbuffer-size-ust 65536 --subbuffer-size-kernel 65536
UST tracing enabled (1 events)
kernel tracing disabled
context (3 fields)
writing tracing session to: /root/.ros/tracing/session-20230901023936
press enter to start...
subbuffer ust = 65536
subbuffer kernel = 65536
press enter to stop...
stopping & destroying tracing session
without any option:
# ros2 caret record
UST tracing enabled (1 events)
kernel tracing disabled
context (3 fields)
writing tracing session to: /root/.ros/tracing/session-20230901023906
press enter to start...
subbuffer ust = 32768
subbuffer kernel = 131072
press enter to stop...
stopping & destroying tracing session
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
Co-authored-by: isp-uetsuki <[email protected]>
Signed-off-by: yamasaki <[email protected]>
d0aa069
to
0359359
Compare
Conflict occurred because another PR was merged. |
Description
In caret, the lttng buffer size was hard-coded in the forked ros2_tracing.
This was done to prevent trace data from being lost.
In ros2_tracing since iron, it is possible to change the buffer size of lttng externally.
This PR provides an option to specify the buffer size from the ros2caret cli.
usage:
Related links
Notes for reviewers
ros2/ros2_tracing#51
This PR must be merged after #84.
Pre-review checklist for the PR author
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.